package com.yx.outSourcing.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yx.outSourcing.R.Result;
import com.yx.outSourcing.entity.dto.OutsourcingPersonDTO;
import com.yx.outSourcing.entity.po.OutsourcingPerson;
import com.yx.outSourcing.entity.vo.OutsourcingPersonVO;

import javax.validation.Valid;

/**
 * <p>
 * 外协人员信息表 服务类
 * </p>
 *
 * @author zcc
 * @since 2025-07-29
 */
public interface IOutsourcingPersonService extends IService<OutsourcingPerson> {

    Page<OutsourcingPersonVO> queryPersonList(String name, String idCard, String companyName, String startDate, String endDate, Integer status, Integer pageNum, Integer pageSize);

    Long addOutsourcingPerson(@Valid OutsourcingPersonDTO dto);

    boolean updateOutPerson(Long id, OutsourcingPersonDTO dto);
}
